package com.dzx.design.structural.decorator.v2;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年08月01日 15:38:01
 */
public class Test {

    public static void main(String[] args){
     ABattercake aBattercake;
     aBattercake = new Battercake();
     aBattercake = new EggDecorator(aBattercake);
     aBattercake = new EggDecorator(aBattercake);
     aBattercake = new SausageDecorator(aBattercake);

     System.out.println(aBattercake.getDesc()+"销售价格"+aBattercake.cost());


    }
}
